<% content_for :left do %>
  <%= link_to 'Song list', {:controller => "songlist"} %>
  <br/>
  <%= link_to 'Artist list', artists_path %>
  <br/>
  <%= link_to 'New Song', new_artist_song_path(@artist) %>
  <br/>
  <%= link_to 'Edit', edit_artist_path(@artist) %>
  <br/>
  <%= link_to 'Delete', @artist, :method => :delete %>
<% end %>

<h1>Artist: <%=h @artist.name %>
</h1>

<h2>Songs</h2>
<table>
  <tr><th>Title</th></tr>
<% @artist.songs.each do |s| %> 
  <tr>
    <td>
      <%= link_to s.title, artist_song_path(@artist, s) %>
    </td>
  </tr>
<% end %>
</table>

